HtmlDoc[] x;
x <- url("http://flickr.com/search/?q=" + getarg(1));

string[[string]][] tags <- getArrayByTag("img", x);

tags <- filterArrayByAttribute("class", "pc_img", tags);

integer index;
string[[string]] value;

print("Here are the images:");
foreach (index value in tags) {
	print(value[["alt"]] + ": " + value[["src"]]);
	print("-----------------------------------------------------------------");
}
